﻿using System;

namespace ExtendedFilter.ExtendedFilter
{
	public class PropertyInfo
	{
		public PropertyInfo(PropertyInfo rhs)
		{
			this.m_Name = rhs.m_Name;
			this.m_Checked = rhs.m_Checked;
		}

		public PropertyInfo(string name, bool m_Checked)
		{
			this.m_Name = name;
			m_Checked = m_Checked;
		}

		public string TheName
		{
			get
			{
				return this.m_Name;
			}
		}

		public bool Checked
		{
			get
			{
				return this.m_Checked;
			}
			set
			{
				this.m_Checked = value;
			}
		}

		public bool IsEquals(PropertyInfo other)
		{
			return this.TheName.CompareTo(other.TheName) == 0;
		}

		private string m_Name;

		private bool m_Checked;
	}
}
